package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.BusinessCommissionConfirmed;
import com.chenfan.mcn.model.McnPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商务提成确认表 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2021-06-17
 */
public interface BusinessCommissionConfirmedMapper extends EnhancedBaseMapper<BusinessCommissionConfirmed> {

    /**
     * 获取未删除的确认详情数据
     *
     * @param page                 分页
     * @param businessId           提成id
     * @param commissionIdList     提成人
     * @param departmentHeadIdList 部门负责人
     * @return 确认详情数据
     */
    Page<BusinessCommissionConfirmed> getConfirmedList(McnPage<BusinessCommissionConfirmed> page, @Param("businessId") Long businessId, @Param("commissionIdList") List<Long> commissionIdList, @Param("departmentHeadIdList") List<Long> departmentHeadIdList);
}
